import { Application } from 'egg';

// 用户画像表
export default (app: Application) => {
    const { STRING, CHAR } = app.Sequelize;
    const model = app.model.define('Setting', {
        setting_id: { type: CHAR(32), primaryKey: true }, // id
        setting_key: { type: STRING(32), primaryKey: true }, // 设置键
        setting_value: STRING(32), // 设置值
    }, { tableName: 't_setting' });
    return model;
};

export class Setting {
    setting_id: string;
    setting_key: string;
    setting_value: string;
}
